﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace AppSocketModel
{

    /// <summary>
    /// GPS设备返回帧类型
    /// </summary>
    public enum GpsFrame
    {
        /// <summary>
        /// 设备状态
        /// </summary>
        [Description("设备状态")]
        DEVICEINFO=1,

        /// <summary>
        /// 设备重启类型统计
        /// </summary>
        [Description("设备重启类型统计")]
        RSTTYPECNT,

        /// <summary>
        /// 定位数据
        /// </summary>
        [Description("定位数据")]
        LOCATION,

        /// <summary>
        /// 实时数据
        /// </summary>
        [Description("实时数据")]
        LOCATIONREAL,

        /// <summary>
        /// LBS定位数据
        /// </summary>
        [Description("LBS定位数据")]
        LOCATIONLBS,

        /// <summary>
        /// LBS实时数据
        /// </summary>
        [Description("LBS实时数据")]
        LOCATIONLBSREAL,

        /// <summary>
        /// 余额命令返回
        /// </summary>
        [Description("余额命令返回")]
        CMDRETURNYE,

        /// <summary>
        /// 数据上报时间间隔命令返回
        /// </summary>
        [Description("数据上报时间间隔命令返回")]
        CMDRETURNSPAN,

        /// <summary>
        /// 实时数据命令返回
        /// </summary>
        [Description("实时数据命令返回")]
        CMDRETURNREAL,

        /// <summary>
        /// 设置休眠时间命令返回
        /// </summary>
        [Description("设置休眠时间命令返回")]
        CMDRETURNSLEEP,

        /// <summary>
        /// 设置唤醒后定位数据发送次数命令
        /// </summary>
        [Description("设置唤醒后定位数据发送次数命令")]
        CMDRETURNSENDTIMES,

        /// <summary>
        /// 设置设备发生异常情况时休眠时间命令返回
        /// </summary>
        [Description("设置设备发生异常情况时休眠时间命令返回")]
        CMDRETURNSLEEPONERR,
    }


    /// <summary>
    /// 设备状态帧
    /// </summary>
    public enum DeviceInfo
    {
        /// <summary>
        /// 重置次数
        /// </summary>
        ResetCount = 1,

        /// <summary>
        /// 数据发送间隔时间
        /// </summary>
        SendTimeSpan=2,

        /// <summary>
        /// GPRS模块型号
        /// </summary>
        GprsModule=3,

        /// <summary>
        /// 电池电压标题
        /// </summary>
        BatVoltage=4,

        /// <summary>
        /// 唤醒类型
        /// </summary>
        WKUP=5,

        /// <summary>
        /// 休眠时间分钟
        /// </summary>
        SleepTime=6,

        /// <summary>
        /// 唤醒后发送次数
        /// </summary>
        SendTimes=7,

        /// <summary>
        /// 发生异常时休眠时间分钟
        /// </summary>
        SleepTimeOnErr=8,

        /// <summary>
        /// 帧长度
        /// </summary>
        Len=9,

        /// <summary>
        /// 重置总次数
        /// </summary>
        ResetTotal = 10,
    }
}
